package com.heima.search.search;

import com.heima.search.entity.ApAssociateWords;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ApAssociateWordsRepository extends MongoRepository<ApAssociateWords,String> {
    List<ApAssociateWords> findTopByAssociateWordsStartingWith (String name, Pageable pageable);
}
